Skip to content

Conversation

KingDarBoja
Copy link
Collaborator

PR Checklist

Overview

Fixes these rule converters:

  • @typescript-eslint/prefer-interface is replaced by @typescript-eslint/consistent-type-definitions.
  • @typescript-eslint/no-object-literal-type-assertion and @typescript-eslint/no-angle-bracket-type-assertion are combined in to one single rule @typescript-eslint/consistent-type-assertions

I am a bit worried about the no-object-literal-type-assertion one because it has one option called allow-arguments which can be set to true to allow type casting inside a function/class argument.

Check TSLint rule and compare against Typescript-ESLint one.

@JoshuaKGoldberg JoshuaKGoldberg added the status: waiting for reviewer Waiting for a maintainer to review label Oct 20, 2019
@KingDarBoja KingDarBoja changed the title Bugfix/replace removed rules [Bugfix] Replace removed rules Oct 21, 2019
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, looks swell. Thanks @KingDarBoja! 💯

@JoshuaKGoldberg JoshuaKGoldberg merged commit 3f0ab44 into typescript-eslint:master Oct 22, 2019
@KingDarBoja KingDarBoja deleted the bugfix/replace-removed-rules branch October 22, 2019 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for reviewer Waiting for a maintainer to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some removed rules are included in eslintrc.js
2 participants